package com.zhou.controller;

import com.zhou.service.ValidateService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author lcz
 * @desc 验证控制器
 * @mail lcz_0130@163.com
 * @date 2023/12/28
 */

@RestController
public class ValidateController {
    @Resource
    private ValidateService validateService;

    @GetMapping("/checkToken")
    public String checkToken(HttpServletRequest request, HttpServletResponse response) {
        return validateService.checkToken(request, response);
    }
}
